<script>
    var i=1;
    var sum=0;
    while (i<=100) {
        sum+=i;
        i++
    }
    console.log(sum);
</script>